package world.criver.mm_vworld_server.function;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.springframework.stereotype.Component;
import world.criver.mm_vworld_server.enums.enumKey;

@Component
public class funAdminMessage {
    private ObjectMapper om=new ObjectMapper();
    public ObjectNode error(String message){
        ObjectNode on=om.createObjectNode();
        on.put(enumKey.tip.name(),message);
        on.put(enumKey.status.name(), false);
        on.put(enumKey.timestamp.name(), System.currentTimeMillis());
        return on;
    }
}
